<?php
/**
 * @ClassName: Store
 * @Description: TODO
 * @author: ynbjykj
 * @Date: 2025-11-28 11:01
 * @Version: V1.0.0
 */

namespace app\api\controller\agent;

use app\api\controller\Api;
use app\common\model;

class Store extends Api
{
    /**
     * 门店列表
     * @return \think\response\Json
     */
    function getStoreList()
    {
        $keyword = input('keyword', '');

        $list = model\Store::where('store_name|contact_name|contact_phone', 'like', '%' . $keyword . '%')->select();

        return json(['code' => 1, 'msg' => 'ok', 'data' => $list]);
    }

}